package com.zhida.common.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.HashMap;
import java.util.List;

/**
 * Create by zhh 2024/7/19 15:01
 */
@Mapper
@Repository
public interface ScheduleMapper {
    @Select("select cron from scheduled where cron_name=#{cron_name}")
    String getCorn(String cron_name);

    @Select("select * from scheduled")
    List<HashMap<String,String>> getSchedule();
}
